package com.evil.Servlet;

import com.evil.Bean.FlowCallbackBean;
import com.evil.DAO.FlowCallbackDAO;
import com.google.gson.Gson;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.ArrayList;

/********************************************
 * 工程名：Web
 * 包名：${PACKAGE_NAME}
 * 时间：16-9-24 上午10:42
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：流量兑换记录Servlet
 ********************************************/
public class FlowCallbackServlet extends BaseServlet
{
    private String phone;
    private String imei;

    @Override
    public void doPost()
    {
        phone = getParameter("phone");
        imei = getParameter("imei");

        print("unfinished");

        /*if (!phone.isEmpty())
        {
            getAllList();
        }*/
    }

    private void getAllList()
    {
        FlowCallbackDAO dao = new FlowCallbackDAO();
        ArrayList<FlowCallbackBean> list = dao.getAllList(phone);

        printJSON(list);
    }
}